package com.Excrises;

public class TwstGoodsShp {
    public static void main(String[] args) {
        GoodsShop goodsShop = new GoodsShop();

        Goods g1 = new Goods(001,"可口可乐");

        goodsShop.sellGoods(g1);
        Goods g2 = new Goods(002,"雪碧");

        goodsShop.sellGoods(g2);

        System.out.println(g1);
        System.out.println(g2);


        double money = goodsShop.getMoney();

        System.out.println("商品出售的价格是" + money);
    }
}
